package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CoffeeOutboundTrackingInfoMapper;
import com.ruoyi.system.domain.CoffeeOutboundTrackingInfo;
import com.ruoyi.system.service.ICoffeeOutboundTrackingInfoService;

/**
 * 出库信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-13
 */
@Service
public class CoffeeOutboundTrackingInfoServiceImpl implements ICoffeeOutboundTrackingInfoService 
{
    @Autowired
    private CoffeeOutboundTrackingInfoMapper coffeeOutboundTrackingInfoMapper;

    /**
     * 查询出库信息
     * 
     * @param warehouseId 出库信息主键
     * @return 出库信息
     */
    @Override
    public CoffeeOutboundTrackingInfo selectCoffeeOutboundTrackingInfoByWarehouseId(Long warehouseId)
    {
        return coffeeOutboundTrackingInfoMapper.selectCoffeeOutboundTrackingInfoByWarehouseId(warehouseId);
    }

    /**
     * 查询出库信息列表
     * 
     * @param coffeeOutboundTrackingInfo 出库信息
     * @return 出库信息
     */
    @Override
    public List<CoffeeOutboundTrackingInfo> selectCoffeeOutboundTrackingInfoList(CoffeeOutboundTrackingInfo coffeeOutboundTrackingInfo)
    {
        return coffeeOutboundTrackingInfoMapper.selectCoffeeOutboundTrackingInfoList(coffeeOutboundTrackingInfo);
    }

    /**
     * 新增出库信息
     * 
     * @param coffeeOutboundTrackingInfo 出库信息
     * @return 结果
     */
    @Override
    public int insertCoffeeOutboundTrackingInfo(CoffeeOutboundTrackingInfo coffeeOutboundTrackingInfo)
    {
        return coffeeOutboundTrackingInfoMapper.insertCoffeeOutboundTrackingInfo(coffeeOutboundTrackingInfo);
    }

    /**
     * 修改出库信息
     * 
     * @param coffeeOutboundTrackingInfo 出库信息
     * @return 结果
     */
    @Override
    public int updateCoffeeOutboundTrackingInfo(CoffeeOutboundTrackingInfo coffeeOutboundTrackingInfo)
    {
        return coffeeOutboundTrackingInfoMapper.updateCoffeeOutboundTrackingInfo(coffeeOutboundTrackingInfo);
    }

    /**
     * 批量删除出库信息
     * 
     * @param warehouseIds 需要删除的出库信息主键
     * @return 结果
     */
    @Override
    public int deleteCoffeeOutboundTrackingInfoByWarehouseIds(Long[] warehouseIds)
    {
        return coffeeOutboundTrackingInfoMapper.deleteCoffeeOutboundTrackingInfoByWarehouseIds(warehouseIds);
    }

    /**
     * 删除出库信息信息
     * 
     * @param warehouseId 出库信息主键
     * @return 结果
     */
    @Override
    public int deleteCoffeeOutboundTrackingInfoByWarehouseId(Long warehouseId)
    {
        return coffeeOutboundTrackingInfoMapper.deleteCoffeeOutboundTrackingInfoByWarehouseId(warehouseId);
    }
}
